package com.phpxiu.app.adapter.holder;

import android.graphics.Color;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;
import android.view.View;

import com.phpxiu.app.kkylive.R;
import com.phpxiu.app.view.custom.MsgTextView;

/**
 * Created by WuJinZhou on 2016/5/16.
 */
public class CommonMsgViewHolder {
    public final static int NICK_SPAN_COLOR=Color.parseColor("#ffEDEDED");
    public final static int GIFT_SPAN_COLOR=Color.parseColor("#ffFD8BAA");
    public final static int SYSTEM_SPAN_COLOR=Color.parseColor("#ff3BCBF4");
    public final static int GOOD_SPAN_COLOR=Color.parseColor("#ffFAD303");
    public static ForegroundColorSpan nickSpan=new ForegroundColorSpan(NICK_SPAN_COLOR);
    public static ForegroundColorSpan giftSpan=new ForegroundColorSpan(GIFT_SPAN_COLOR);
    public static ForegroundColorSpan systemSpan=new ForegroundColorSpan(SYSTEM_SPAN_COLOR);
    public static ForegroundColorSpan goodSpan=new ForegroundColorSpan(GOOD_SPAN_COLOR);
    public SpannableStringBuilder text;
    public MsgTextView msgContent;
    public CommonMsgViewHolder(View itemView) {
        text=new SpannableStringBuilder();
        msgContent=(MsgTextView)itemView.findViewById(R.id.common_chat_msg_item_content_view);
    }
}
